package dto;

import utils.TextConverter;

/**
 * Created by Gipxy group
 * Date: 3/18/12
 */
public class RelatedTopicDto {
    public String name;
    public String code;//to get link
    public Long topicId; //to get image

    public RelatedTopicDto(Long topicId, String code, String name) {
        this.name = name;
        this.code = code;
        this.topicId = topicId;
    }

    public RelatedTopicDto() {
    }

    public String getShortTitle(){
        return TextConverter.convertToShortUrl(name);
    }
}
